package com.xms.sdk.data;

import com.xms.schema.entity.Attribute;
import com.xms.schema.entity.RelationShip;
import com.xms.sdk.core.query.AttributeAggregateExpression;

import java.sql.SQLException;
import java.util.List;
import java.util.UUID;

/**
 * <p>
 * IFieldValueUpdater
 * </p>
 *
 * @author migo
 * @since 2021/10/17
 */
public interface IFieldValueUpdater {

    boolean updateSummaryValue(com.xms.schema.entity.Entity entityMetadata, com.xms.core.data.Entity data, Attribute summaryField, RelationShip relationShipMetadata, AttributeAggregateExpression aggExp) throws SQLException;

    boolean updateFormulaValue(String entityName, List<Attribute> attributes, UUID recordId) throws SQLException;
}
